package com.mdx.core.manager;
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * 定时任务
 *
 * @author : jiagang
 * @date : Created in 2022/1/27 13:27
 */
@Service
@Slf4j
public class ScheduledManager {

    private final String taskCron = "0 0/2 * * * ?"; // 每2分钟执行一次


    /**
     * 定时获取TMS代办定时任务
     */
    @Scheduled(cron = taskCron)
    @Transactional
    public void executeGetTMSTaskList() {

    }
}
